package com.ruoyi.salesman.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务员数据对象 t_salesman
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
public class Salesman extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 业务员ID */
    private Long id;

    /** 用户 */
    @Excel(name = "用户")
    private Long userId;

    /** 业务员姓名 */
    @Excel(name = "业务员姓名")
    private String salesmanName;

    /** 业务员手机号 */
    @Excel(name = "业务员手机号")
    private String salesmanTel;

    /** 业务员邀请码 */
    @Excel(name = "业务员邀请码")
    private String salesmanInvitationCode;

    /** 业务员上级 */
    @Excel(name = "业务员上级")
    private String salesmanInvitedCode;

    /** 常规项目分成比例（%） */
    @Excel(name = "常规项目分成比例", readConverterExp = "%=")
    private BigDecimal splitRate;

    /** 升级套餐分成比例（%） */
    @Excel(name = "升级套餐分成比例", readConverterExp = "%=")
    private BigDecimal upgradeSplitRate;

    /** 第一次加钟分成比例（%） */
    @Excel(name = "第一次加钟分成比例", readConverterExp = "%=")
    private BigDecimal bellFirstSplitRate;

    /** 第二次加钟分成比例（%） */
    @Excel(name = "第二次加钟分成比例", readConverterExp = "%=")
    private BigDecimal bellSecondSplitRate;

    /** 逻辑删除（0=未删除，1=已删除） */
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSalesmanName(String salesmanName) 
    {
        this.salesmanName = salesmanName;
    }

    public String getSalesmanName() 
    {
        return salesmanName;
    }
    public void setSalesmanTel(String salesmanTel) 
    {
        this.salesmanTel = salesmanTel;
    }

    public String getSalesmanTel() 
    {
        return salesmanTel;
    }
    public void setSalesmanInvitationCode(String salesmanInvitationCode) 
    {
        this.salesmanInvitationCode = salesmanInvitationCode;
    }

    public String getSalesmanInvitationCode() 
    {
        return salesmanInvitationCode;
    }
    public void setSalesmanInvitedCode(String salesmanInvitedCode) 
    {
        this.salesmanInvitedCode = salesmanInvitedCode;
    }

    public String getSalesmanInvitedCode() 
    {
        return salesmanInvitedCode;
    }
    public void setSplitRate(BigDecimal splitRate) 
    {
        this.splitRate = splitRate;
    }

    public BigDecimal getSplitRate() 
    {
        return splitRate;
    }
    public void setUpgradeSplitRate(BigDecimal upgradeSplitRate) 
    {
        this.upgradeSplitRate = upgradeSplitRate;
    }

    public BigDecimal getUpgradeSplitRate() 
    {
        return upgradeSplitRate;
    }
    public void setBellFirstSplitRate(BigDecimal bellFirstSplitRate) 
    {
        this.bellFirstSplitRate = bellFirstSplitRate;
    }

    public BigDecimal getBellFirstSplitRate() 
    {
        return bellFirstSplitRate;
    }
    public void setBellSecondSplitRate(BigDecimal bellSecondSplitRate) 
    {
        this.bellSecondSplitRate = bellSecondSplitRate;
    }

    public BigDecimal getBellSecondSplitRate() 
    {
        return bellSecondSplitRate;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("salesmanName", getSalesmanName())
            .append("salesmanTel", getSalesmanTel())
            .append("salesmanInvitationCode", getSalesmanInvitationCode())
            .append("salesmanInvitedCode", getSalesmanInvitedCode())
            .append("splitRate", getSplitRate())
            .append("upgradeSplitRate", getUpgradeSplitRate())
            .append("bellFirstSplitRate", getBellFirstSplitRate())
            .append("bellSecondSplitRate", getBellSecondSplitRate())
            .append("isDelete", getIsDelete())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
